package com.itany.hotel.entity;

import java.io.Serializable;

public class Category implements Serializable {
    private Integer id;

    private String name;

    private String code;

    private Double bedprice;

    private Double roomprice;

    private String description;

    private static final long serialVersionUID = 1L;

    public Category(Integer id, String name, String code, Double bedprice, Double roomprice) {
        this.id = id;
        this.name = name;
        this.code = code;
        this.bedprice = bedprice;
        this.roomprice = roomprice;
    }

    public Category(Integer id, String name, String code, Double bedprice, Double roomprice, String description) {
        this.id = id;
        this.name = name;
        this.code = code;
        this.bedprice = bedprice;
        this.roomprice = roomprice;
        this.description = description;
    }

    public Category() {
        super();
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name == null ? null : name.trim();
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code == null ? null : code.trim();
    }

    public Double getBedprice() {
        return bedprice;
    }

    public void setBedprice(Double bedprice) {
        this.bedprice = bedprice;
    }

    public Double getRoomprice() {
        return roomprice;
    }

    public void setRoomprice(Double roomprice) {
        this.roomprice = roomprice;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description == null ? null : description.trim();
    }
}